﻿<UserControl x:Class="NavigationMVVMDemo.Views.Theme1.PhoneNumberView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <TextBox x:Name="txtAreaCode"
                 Grid.Row="0"
                 Width="100"
                 Text="{Binding PhoneNumber.AreaCode}"/>

        <TextBox x:Name="txtNumber"
                 Grid.Row="1"
                 Width="100"
                 Text="{Binding PhoneNumber.Number}"/>

        <StackPanel Orientation="Horizontal"
                    Grid.Row="2">
            <Button x:Name="btnSave"
                    Content="Save"
                    Command="{Binding SaveCommand}"/>
            <Button x:Name="btnCancel"
                    Content="Cancel"
                    Command="{Binding CancelCommand}"/>
        </StackPanel>
    </Grid>
</UserControl>
